package plugininstaller

import (
	"go-caipu/pkg/infra/log"
	"go-caipu/pkg/plugins"
	"go-caipu/pkg/setting"
)

type Service struct {
	cfg              *setting.Cfg
	log              log.Logger
	pluginsInstaller plugins.Installer
}

func ProvideService(cfg *setting.Cfg, pluginInstaller plugins.Installer) (*Service, error) {
	return &Service{
		cfg:              cfg,
		log:              log.New("plugin.backgroundinstaller"),
		pluginsInstaller: pluginInstaller,
	}, nil
}
